/* 用户下拉菜单样式文件 */

/* 用户信息触发器 */
.user-info {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.user-info-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(42, 92, 170, 0.05);
    border: 1px solid transparent;
}

.user-info-trigger:hover {
    background: rgba(42, 92, 170, 0.1);
    border-color: rgba(42, 92, 170, 0.2);
}

.user-info-trigger span {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.dropdown-arrow {
    color: #6B7280;
    transition: transform 0.2s ease;
}

.user-info.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #E5EDF9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(42, 92, 170, 0.1);
}

/* 下拉菜单 */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E7EB;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-info.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉菜单头部 */
.dropdown-header {
    padding: 20px;
    border-bottom: 1px solid #F3F4F6;
    background: linear-gradient(135deg, #F8FAFC, #F1F5F9);
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #E5EDF9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(42, 92, 170, 0.1);
}

.dropdown-user-details {
    flex: 1;
}

.dropdown-user-name {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
}

.dropdown-user-id {
    font-size: 13px;
    color: #6B7280;
}

/* 下拉菜单项目 */
.dropdown-menu {
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #F9FAFB;
    color: #2A5CAA;
}

.dropdown-item iconify-icon {
    color: #6B7280;
    transition: color 0.2s ease;
}

.dropdown-item:hover iconify-icon {
    color: #2A5CAA;
}

.dropdown-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 8px 0;
}

/* 登出项目 */
.logout-item {
    color: #DC2626;
}

.logout-item:hover {
    background: #FEF2F2;
    color: #DC2626;
}

.logout-item iconify-icon {
    color: #DC2626;
}

.logout-item:hover iconify-icon {
    color: #DC2626;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-dropdown {
        width: 260px;
        right: -20px;
    }
    
    .dropdown-header {
        padding: 16px;
    }
    
    .dropdown-item {
        padding: 10px 16px;
    }
}
